#include <iostream>
using namespace std;
int answer;
int Pow2(int num1,int solution);
void main()
{
	int num1;
	int num2;
	cout << "First number: ";
	cin >> num1;
	cout << "Exponent: ";
	cin >> num2;
	answer=Pow2(num1,num2);
	cout << answer << "\n";
	system("pause");
}
int Pow2(int num1,int exponent)
{
	answer=num1;
	for (int i=1;i<exponent;i++)
	{
		answer=answer*num1;
	}
	return answer;
}